package com.joinlabs.entity;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

public class User {
	private Long userId;

	private String userAccount;

	private String userPassword;

	private String userName;

	private String userSex;
	
	private String userAddress;
	private String sheng;
	private String shi;
	
	
	private String userHeadpath;

	private String userBgpath;

	private String userSexual;

	private String userMood;

	private Date userBirthday;

	private String userBlood;

	private String userBoke;

	private String userHabituri;

	private String userIntroduce;

	private Date userRegtime;

	private String userPost;

	private String userQq;

	private String userMsn;

	private String userProfession;

	private String userEduc;

	private String userTag;

	private Long userConcernnum;

	private Long userFans;

	private Long userWbnum;

	private Short userVip;

	private Short userBlacklist;
	
	private String group;
	
	private int guanzhuzhuangtai;

	
	
	
	
	
	public void setSheng(String sheng) {
		this.sheng = sheng;
	}

	public void setShi(String shi) {
		this.shi = shi;
	}

	public int getGuanzhuzhuangtai() {
		return guanzhuzhuangtai;
	}

	public void setGuanzhuzhuangtai(int guanzhuzhuangtai) {
		this.guanzhuzhuangtai = guanzhuzhuangtai;
	}

	public Long getUserId() {
		return userId;
	}
	
	public void setgroup(String group) {
		this.group = group;
	}

	public String getgroup() {
		return group;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getUserAccount() {
		return userAccount;
	}

	public void setUserAccount(String userAccount) {
		this.userAccount = userAccount == null ? null : userAccount.trim();
	}

	public String getUserPassword() {
		return userPassword;
	}

	public void setUserPassword(String userPassword) {
		this.userPassword = userPassword == null ? null : userPassword.trim();
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName == null ? null : userName.trim();
	}

	public String getUserSex() {
		return userSex;
	}

	public void setUserSex(String userSex) {
		this.userSex = userSex == null ? null : userSex.trim();
	}

	public String getUserAddress() {
		return userAddress;
	}

	public void setUserAddress(String userAddress) {
		this.userAddress = userAddress == null ? null : userAddress.trim();
	}

	public String getUserHeadpath() {
		return userHeadpath;
	}

	public void setUserHeadpath(String userHeadpath) {
		this.userHeadpath = userHeadpath == null ? null : userHeadpath.trim();
	}

	public String getUserBgpath() {
		return userBgpath;
	}

	public void setUserBgpath(String userBgpath) {
		this.userBgpath = userBgpath == null ? null : userBgpath.trim();
	}

	public String getUserSexual() {
		return userSexual;
	}

	public void setUserSexual(String userSexual) {
		this.userSexual = userSexual == null ? null : userSexual.trim();
	}

	public String getUserMood() {
		return userMood;
	}

	public void setUserMood(String userMood) {
		this.userMood = userMood == null ? null : userMood.trim();
	}

	public Date getUserBirthday() {
		return userBirthday;
	}

	public void setUserBirthday(Date userBirthday) {
		this.userBirthday = userBirthday;
	}

	private SimpleDateFormat sdf = new SimpleDateFormat("yyyy年MM月dd日");

	private SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy-MM-dd");

	public String getUserBirthdaystr() {

		if (getUserBirthday() != null) {

			return sdf.format(getUserBirthday());
		}
		return null;
	}

	public void setUserBirthdaystr(String userBirthday) {

		try {
			this.userBirthday = sdf1.parse(userBirthday);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	public String getUserBlood() {
		return userBlood;
	}

	public void setUserBlood(String userBlood) {
		this.userBlood = userBlood == null ? null : userBlood.trim();
	}

	public String getUserBoke() {
		return userBoke;
	}

	public void setUserBoke(String userBoke) {
		this.userBoke = userBoke == null ? null : userBoke.trim();
	}

	public String getUserHabituri() {
		return userHabituri;
	}

	public void setUserHabituri(String userHabituri) {
		this.userHabituri = userHabituri == null ? null : userHabituri.trim();
	}

	public String getUserIntroduce() {
		return userIntroduce;
	}

	public void setUserIntroduce(String userIntroduce) {
		this.userIntroduce = userIntroduce == null ? null : userIntroduce.trim();
	}

	public Date getUserRegtime() {
		return userRegtime;
	}

	public void setUserRegtime(Date userRegtime) {
		this.userRegtime = userRegtime;
	}

	public String getUserRegtimestr() {

		if (getUserRegtime() != null) {

			return sdf.format(getUserRegtime());
		}
		return null;
	}

	public String getUserPost() {
		return userPost;
	}

	public void setUserPost(String userPost) {
		this.userPost = userPost == null ? null : userPost.trim();
	}

	public String getUserQq() {
		return userQq;
	}

	public void setUserQq(String userQq) {
		this.userQq = userQq == null ? null : userQq.trim();
	}

	public String getUserMsn() {
		return userMsn;
	}

	public void setUserMsn(String userMsn) {
		this.userMsn = userMsn == null ? null : userMsn.trim();
	}

	public String getUserProfession() {
		return userProfession;
	}

	public void setUserProfession(String userProfession) {
		this.userProfession = userProfession == null ? null : userProfession.trim();
	}

	public String getUserEduc() {
		return userEduc;
	}

	public void setUserEduc(String userEduc) {
		this.userEduc = userEduc == null ? null : userEduc.trim();
	}

	public String getUserTag() {
		return userTag;
	}

	public void setUserTag(String userTag) {
		this.userTag = userTag == null ? null : userTag.trim();
	}

	public Long getUserConcernnum() {
		return userConcernnum;
	}

	public void setUserConcernnum(Long userConcernnum) {
		this.userConcernnum = userConcernnum;
	}

	public Long getUserFans() {
		return userFans;
	}

	public void setUserFans(Long userFans) {
		this.userFans = userFans;
	}

	public Long getUserWbnum() {
		return userWbnum;
	}

	public void setUserWbnum(Long userWbnum) {
		this.userWbnum = userWbnum;
	}

	public Short getUserVip() {
		return userVip;
	}

	public void setUserVip(Short userVip) {
		this.userVip = userVip;
	}

	public Short getUserBlacklist() {
		return userBlacklist;
	}

	public void setUserBlacklist(Short userBlacklist) {
		this.userBlacklist = userBlacklist;
	}
	/* **************************************************************/
	public String getSheng(){
		return sheng;
	}
	public String getShi(){
		return shi;
	}
	/* **************************************************************/

	@Override
	public String toString() {
		return "User [userId=" + userId + ", userAccount=" + userAccount + ", userPassword=" + userPassword
				+ ", userName=" + userName + ", userSex=" + userSex + ", userAddress=" + userAddress + ", sheng="
				+ sheng + ", shi=" + shi + ", userHeadpath=" + userHeadpath + ", userBgpath=" + userBgpath
				+ ", userSexual=" + userSexual + ", userMood=" + userMood + ", userBirthday=" + userBirthday
				+ ", userBlood=" + userBlood + ", userBoke=" + userBoke + ", userHabituri=" + userHabituri
				+ ", userIntroduce=" + userIntroduce + ", userRegtime=" + userRegtime + ", userPost=" + userPost
				+ ", userQq=" + userQq + ", userMsn=" + userMsn + ", userProfession=" + userProfession + ", userEduc="
				+ userEduc + ", userTag=" + userTag + ", userConcernnum=" + userConcernnum + ", userFans=" + userFans
				+ ", userWbnum=" + userWbnum + ", userVip=" + userVip + ", userBlacklist=" + userBlacklist + ", group="
				+ group + ", guanzhuzhuangtai=" + guanzhuzhuangtai + ", sdf=" + sdf + ", sdf1=" + sdf1 + "]";
	}

}